package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问题回收
对象 tmc_emergency
 * 
 * @author ruoyi
 * @date 2021-03-31
 */
public class TmcEmergency extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private int publicuserId;

    /** 用户ID */
    @Excel(name = "用户姓名")
    private String userName;

    /** 事件类型 */
    @Excel(name = "事件类型")
    private String type;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String description;

    /** 经度 */
    @Excel(name = "经度")
    private String lon;

    /** 经度 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createtime;

    /** 纬度 */
    @Excel(name = "纬度")
    private String lat;

    /** 上报位置 */
    @Excel(name = "上报位置")
    private String location;

    /** 回应人员 */
    @Excel(name = "回应人员")
    private Long clientId;

    /** 回应人员 */
    @Excel(name = "回应人员")
    private String clientName;
    private List<TmcEmergencyAttach> AttachList;

    /** 回应时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "回应时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date responseTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPublicuserId(int publicuserId)
    {
        this.publicuserId = publicuserId;
    }

    public int getPublicuserId()
    {
        return publicuserId;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setLon(String lon) 
    {
        this.lon = lon;
    }

    public List<TmcEmergencyAttach> getAttachList() {
        return AttachList;
    }

    public void setAttachList(List<TmcEmergencyAttach> attachList) {
        AttachList = attachList;
    }

    public String getLon()
    {
        return lon;
    }
    public void setLat(String lat) 
    {
        this.lat = lat;
    }

    public String getLat() 
    {
        return lat;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setResponseTime(Date responseTime) 
    {
        this.responseTime = responseTime;
    }

    public Date getResponseTime() 
    {
        return responseTime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicuserId", getPublicuserId())
            .append("userName", getUserName())
            .append("type", getType())
            .append("state", getState())
            .append("description", getDescription())
            .append("lon", getLon())
            .append("lat", getLat())
            .append("location", getLocation())
            .append("createtime", getCreatetime())
            .append("clientId", getClientId())
            .append("clientName", getClientName())
            .append("responseTime", getResponseTime())
            .toString();
    }
}
